﻿@{
    ViewBag.Title = "评议结束";
}
<!DOCTYPE html>
<html>
@Html.Partial("LoadPanelPartial")
<head>
<title></title>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)
    <script type="text/javascript">
        $(document).ready(function () {
            var hdisFstatus = $("#hdisFstatus").val();
            if (hdisFstatus != "") {
                if (hdisFstatus == "E") {
                    $(".table1").hide();
                    $(".table2").hide();
                    $(".table3").hide();
                    $(".table4").show();
                } else if (hdisFstatus == "N") {
                    $(".table1").hide();
                    $(".table2").hide();
                    $(".table3").show();
                    $(".table4").hide();
                } else {
                    $(".table1").show();
                    $(".table2").hide();
                    $(".table3").hide();
                    $(".table4").hide();
                }

            } else {

                $(".table1").hide();
                $(".table2").hide();
                $(".table3").show();
                $(".table4").hide();
            }

        });

        function ok() {
            $.ajax({
                type: 'POST',
                url: rootPath + '/Admin/PeerReviewEnd/End',
                data: { date: "21" },
                success: function (result) {
                    if (result == "ok") {
                        $(".table1").hide();
                        $(".table2").show();
                        $(".table3").hide();
                        $(".table4").hide();
                    } else if (result == "N") {
                        alert("启动结束失败！");
                    } else {
                        alert("启动结束存在参数错误！");
                    }
                }
            });
        }


        function cencel() {
            window.location.href = rootPath + "/Index/Content";
        }

    </script>

</head>
<body>
<script type="text/javascript">
    if (top.boardtop) top.boardtop.head_txt.innerText = "评议结束";

</script>
        <div class="div">
        
        <table valign="middle"  align="center" border="0" class="table1" style="display:none;">
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr height="30">
                <td align="center" width="40%" colspan="2" style="font-size: 12px;text-align:center;">
                是否结束评议？
                    </td>

            </tr>
            <tr height="30">
                <td align="right">
                    @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnOK";
                   settings.Text = "确定";
                   settings.ControlStyle.CssClass = "button";
                   settings.ClientSideEvents.Click = "ok";
                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/ok.png");
               }).GetHtml()
                    </td>
                    <td align="left">
                    @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnCancel";
                   settings.Text = "取消";
                   settings.ControlStyle.CssClass = "button";
                   settings.ClientSideEvents.Click = "cencel";
                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/cancel.png");
               }).GetHtml()                   
                </td>
            </tr>
        </table>

        <table valign="middle"  align="center" border="0" class="table2" style="display:none;">
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr height="30">
                <td align="center" width="40%" colspan="2" style="font-size: 12px;text-align:center;">
                <img src="@Url.Content("~/Content/ControlImages/information.png")"/>&nbsp;&nbsp;评议结束启动成功!
                    </td>

            </tr>

        </table>

    </div>
     <div class="table3" style="display:none;">
         <table valign="middle"  align="center" border="0" class="table3" >
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr height="30">
                <td align="center" width="40%" colspan="2" style="font-size: 12px;text-align:center;">
               &nbsp;&nbsp;评议主题未开启!
                    </td>

            </tr>

        </table>
    
    </div>
     <div class="table4" style="display:none;">
         <table valign="middle"  align="center" border="0" class="table4">
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr height="30">
                <td align="center" width="40%" colspan="2" style="font-size: 12px;text-align:center;">
               &nbsp;&nbsp;评议主题已结束!
                    </td>

            </tr>

        </table>
    
    </div>

    @Html.Hidden("hdisFstatus", ViewData["isFstatus"])
    <script type="text/javascript">
        lp.Hide();
    </script>

</body>
</html>

